@echo off

echo Read Current ProcessId
set "TEMPFILE=%CURRENT_DIR%\tempfile 
wmic process where (Name="wmic.exe" AND CommandLine LIKE "%%%TIME%%%") get ParentProcessId /value | find "ParentProcessId" > %TEMPFILE%
set /P _string=<%TEMPFILE%
echo %_string%
set _pid=%_string:~16%
echo %_pid%
pause

echo Kill Current Process
taskkill /F /PID %_pid%	 

pause